﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TodoApp.ResultModel;
using Volo.Abp.Application.Services;

namespace TodoApp.TMS_maintain.TMS_repair
{
    public  class TMS_RepAppService : ApplicationService
    {
        private readonly ITMS_repairs _ITMS_repairs;
        public TMS_RepAppService(ITMS_repairs ITMS_repairs)
        {
            _ITMS_repairs = ITMS_repairs;
        }

        public async Task<PageResponse<TMS_repairDto>> GetRep(string RepPeop, string RepNumber, int pageindex = 1, int pagesize = 5)
        { 
            return await _ITMS_repairs.GetRep(RepPeop, RepNumber, pageindex, pagesize);
        }

        public async Task<int> RepAdds(TMS_repairDto info)
        { 
            return await _ITMS_repairs.RepAdds(info);
        }

        public async Task<int> DeletRep(string Id)
        { 
            return await _ITMS_repairs.DeletRep(Id);
        }

        public async Task<int> UpdateRepup(TMS_repairDto tMS_Induction)
        {
            return await _ITMS_repairs.UpdateRepup(tMS_Induction);
        }
    }
}
